import { Color, Titlebar } from 'custom-electron-titlebar';

export function initTitlebar() {
  const titlebar = new Titlebar({
    backgroundColor: Color.fromHex('#263238'),
    shadow: false,
    icon: 'favicon.ico',
    maximizable: false,
    hideWhenClickingClose: false,
    menu: null,
    titleHorizontalAlignment: 'left',
    unfocusEffect: true
  });

  titlebar.updateTitle('Scrcpy');
  return titlebar;
}
